package com.example.demo1.service.impl.service;



import com.example.demo1.common.ServerResponse;
import com.example.demo1.entity.BaUser;

import java.util.Map;

public interface UserService {

    ServerResponse<String> doLogin(String userEmail, String password);
    ServerResponse doLogOut(Integer userId);
    ServerResponse<BaUser> getUserInfo(Integer userId);
    ServerResponse qryUsersForPT(String userName, int pageNum, int pageSize);
    ServerResponse addUserInfoForPT(BaUser user, Integer userId, String roleIds);
    ServerResponse addUserInfo(BaUser user, Integer userId);
    ServerResponse editUserInfoForPT(BaUser user, Integer userId, String roleIds);
    ServerResponse editUserInfo(BaUser user, Integer userId);
    ServerResponse deleteUserInfoForPT(String userIds);
    ServerResponse deleteUserInfo(String userIds);
    ServerResponse selectUserRoleByUserId(String userId) ;
    ServerResponse getUserCenterInfo(Integer userId);
    ServerResponse userCenterUpdatePasswd(Integer userId, String originPasswd, String newPasswd);

}
